home *** CD-ROM | disk | FTP | other *** search
- property ancestor, fRoomName, fCkrchNum, fExistOnStage
- global kRoomNames, kGirlNames, kGirlColors, gApp, gNavigator, gTV
-
- on birth me, vSprNum, vID
- set ancestor to NewObj("TAnim", vSprNum, vID)
- mITape(me)
- return me
- end
-
- on mITape me
- mStAnimGrp(me, 1)
- mStAnimNumOne(me, 1, the number of cast "Tape")
- mUpdateSpr(me)
- set fRoomName to EMPTY
- set fCkrchNum to 0
- set fExistOnStage to 0
- end
-
- on mAppearTape me, vRoomName, vCkrchNum
- set fRoomName to vRoomName
- set fCkrchNum to vCkrchNum
- set aRoomNum to getPos(kRoomNames, fRoomName)
- mStAnimGrp(me, 2)
- mStAnimNumOne(me, 1, the number of cast ("VTitle" & vCkrchNum & aRoomNum))
- mStAnimGrp(me, 1)
- mStAnimNumOne(me, 1, the number of cast ("Tape" & vCkrchNum & aRoomNum))
- mUpdateSpr(me)
- mOnStage(me)
- updateStage()
- set fExistOnStage to 1
- end
-
- on mIsExistOnStage me
- return fExistOnStage
- end
-
- on mMoveToTV me
- set aDestLocH to 320
- set aDestLocV to 400
- set aNumMove to float(2)
- set aDH to (aDestLocH - mGtLocH(me)) / aNumMove
- set aDV to (aDestLocV - mGtLocV(me)) / aNumMove
- repeat with aMoveCount = 1 to aNumMove
- mStLocH(me, mGtLocH(me) + aDH)
- mStLocV(me, mGtLocV(me) + aDV)
- updateStage()
- end repeat
- set aRoomNum to getPos(kRoomNames, fRoomName)
- set aGirlName to getAt(kGirlNames, fCkrchNum)
- mStLocH(me, 280)
- mStLocV(me, 405)
- mStAnimGrp(me, 2)
- mUpdateSpr(me)
- updateStage()
- end
-
- on mEjectFromTV me
- mStAnimGrp(me, 1)
- mUpdateSpr(me)
- mRestoreLoc(me)
- updateStage()
- end
-
- on mMouseUp me
- busyCurs()
- hideNavigator()
- set aCurRoomName to mGtCurRoomName(gNavigator)
- mNewMainLayer(gApp, "TLayer", aCurRoomName & "Mov")
- busyCurs()
- showTV()
- unLoad()
- busyCurs()
- mEjectTape(gTV)
- mMoveToTV(me)
- mStPlayingTape(gTV, me)
- mStMovie(gTV, fRoomName, fCkrchNum)
- resetCurs()
- end
-